Micron Document
🎖️GitЯра🎖️

specs/20260520-153428-remove-admin-channel-toggle/quickstart.md docs/obtainium-generated-deeplinks (42f311dd) Text, 1.69 KB

Quickstart: Remove Admin Channel Enabled Toggle

Overview

Remove the T383838admin_channel_enabled toggle from the Security Config screen by deleting 8 lines of Compose UI code and 1 unused import.

Prerequisites

• JDK 21 installed
• T383838ANDROID_HOME set
• Proto submodule initialized (T383838git submodule update --init)

Implementation Steps

Step 1: Remove unused import (Line 49)

In T383838feature/settings/src/commonMain/kotlin/org/meshtastic/feature/settings/radio/component/SecurityConfigScreen.kt:

T282828
T8b949e// DELETE this line:
Tff7b72import T7ee787org.meshtastic.core.resources.legacy_admin_channel


Step 2: Remove toggle block (Lines 207–214)

In the same file, inside the T383838TitledCard(title = stringResource(Res.string.administration)) block, delete:

T282828
T8b949e// DELETE these 8 lines:
Te6edf3HorizontalDividerTb4b4b4(Tb4b4b4)
Te6edf3SwitchPreferenceTb4b4b4(
Te6edf3title Tff7b72= Te6edf3stringResourceTb4b4b4(Te6edf3ResTb4b4b4.Te6edf3stringTb4b4b4.Te6edf3legacy_admin_channelTb4b4b4)Tb4b4b4,
Te6edf3checked Tff7b72= Te6edf3formStateTb4b4b4.Te6edf3valueTb4b4b4.Te6edf3admin_channel_enabledTb4b4b4,
Te6edf3enabled Tff7b72= Te6edf3stateTb4b4b4.Te6edf3connectedTb4b4b4,
Te6edf3onCheckedChange Tff7b72= Tb4b4b4{ Te6edf3formStateTb4b4b4.Te6edf3value Tff7b72= Te6edf3formStateTb4b4b4.Te6edf3valueTb4b4b4.Te6edf3copyTb4b4b4(Te6edf3admin_channel_enabled Tff7b72= Tffa657itTb4b4b4) Tb4b4b4}Tb4b4b4,
Te6edf3containerColor Tff7b72= Te6edf3CardDefaultsTb4b4b4.Te6edf3cardColorsTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3containerColorTb4b4b4,
Tb4b4b4)


Step 3: Verify

T282828
T8b949e# Compile all KMP targets for the settings module
./gradlew :feature:settings:allTests :feature:settings:compileKotlinJvm

T8b949e# Full lint check
./gradlew spotlessApply spotlessCheck detekt


Expected Result

• Security Config screen renders without the admin channel toggle
• "Administration" TitledCard shows only the "Managed Mode" switch
• All existing tests pass
• No lint violations

Served by rngit 1.5.0 - Generated in 0.03s